package com.util;

import java.io.File;
import com.alibaba.fastjson.JSONObject;

import hyl.core.MyFun;
import hyl.core.conf.MyConfig;
import hyl.core.io.MyFile;
import hyl.core.io.MyPath;
import hyl.core.reflect.MySerial;

public class Serial {
	static String 序列化文件名 = MyConfig.loadTxt("zf.path");

	// 加密
	public static void main(String[] args) {

		// 解密() ;
		// System.out.println(MyFun.getUUID());
	}

	public static JSONObject 解密() {		
		
		File f =new File(序列化文件名);
		//MyFun.println(序列化文件名,f );
		if (!f.exists()) {			
			String pathString = MyPath.sfind("支付.zf");
			f = MyFile.openFile(pathString);
		}
		MyFun.println(f.getAbsolutePath());
		JSONObject hm = (JSONObject) MySerial.deserialize(f);
		// System.out.println("反序列化完成"+hm.toString());
		return hm;
	}
}
